const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports ={
    publicPath:'/'
    ,productionSourceMap: process.env.NODE_ENV == 'development' 
    ? true 
    : false
    ,lintOnSave: process.env.NODE_ENV !== 'production'
    ,outputDir:"dist"
    ,chainWebpack: config => {
        config.resolve.alias
          .set("public", resolve("public"))
          .set("views", resolve("src/views"))
          .set("components", resolve("src/components"))
          .set("assets", resolve("src/assets"))
          .set("images", resolve("src/assets/images"))
          .set("js", resolve("src/assets/js"))
          .set("sass", resolve("src/assets/sass"));
          
      },
}